package knh;

import java.util.*;

import android.widget.*;

import com.example.crystall_ball.*;

public class CheckList_Data {
	private String Name;
	private int image;
	private int GroupNum;
	private ArrayList<String> TagID;
	
	public CheckList_Data(int image, String Name,int GroupNum,String tags)
	{
		String tag[] = tags.split(",");
		this.image=image;
		this.Name=Name;
		this.GroupNum=GroupNum;
		TagID = new ArrayList<String>();
		for(String t:tag){
			TagID.add(t);
		}
	}
	
	public CheckList_Data(int image, String Name,String tags)
	{
		String tag[] = tags.split(",");
		this.image=image;
		this.Name=Name;
		this.GroupNum=0;
		TagID = new ArrayList<String>();
		for(String t:tag){
			TagID.add(t);
		}
	}
	
	public int getImage()
	{
		return image;
	}
	
	public String getName()
	{
		return Name;
	}
	public int getGroupNum()
	{
		return GroupNum;
	}
	public ArrayList<String> getTagID()
	{
		return TagID;
	}
	public String getTagIDbyString(){
		String tags = TagID.get(0);
		for(int i=1;i<TagID.size();i++){
			tags += ","+TagID.get(i);
		}
		return tags;
	}
	
}
